package com.xmy.erp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 招生数据
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@TableName("enroll_info")
@ApiModel(value = "EnrollInfo对象", description = "招生数据")
public class EnrollInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("原订单id(由于会有转校改变订单id的原因，保留这个原来订单id)")
    private Long oldOrderId;

    @ApiModelProperty("学校id（报读校区，转校后如果招生信息改变到转入校区，这个校区id也要改变）")
    private Long schoolId;

    private String schoolName;

    @ApiModelProperty("战队id")
    private Long teamId;

    private String teamName;

    @ApiModelProperty("教师id")
    private Long teacherId;

    private String teahcerName;

    @ApiModelProperty("学生id")
    private Long studentId;

    private String studentName;

    @ApiModelProperty("科目")
    private Integer subjectsId;

    @ApiModelProperty("类型：邀约:1，试听:2，成交:3")
    private Integer type;

    @ApiModelProperty("提成金额")
    private BigDecimal pushMoney;

    @ApiModelProperty("成交数：如0.5个，1个")
    private Double dealNum;

    @ApiModelProperty("是否真实数据（上过两次课）")
    private Integer isTrue;

    @ApiModelProperty("是否退费（上过两次课前的算退费）")
    private Integer isReturn;

    @ApiModelProperty("0否，1是")
    private Integer isGrant;

    @ApiModelProperty("发放日期")
    private LocalDate grantDate;

    private Integer deleted;

    @ApiModelProperty("添加日期")
    private LocalDate addDate;

    private LocalDateTime createdAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public Long getOldOrderId() {
        return oldOrderId;
    }

    public void setOldOrderId(Long oldOrderId) {
        this.oldOrderId = oldOrderId;
    }
    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }
    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }
    public Long getTeamId() {
        return teamId;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }
    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }
    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }
    public String getTeahcerName() {
        return teahcerName;
    }

    public void setTeahcerName(String teahcerName) {
        this.teahcerName = teahcerName;
    }
    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }
    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }
    public Integer getSubjectsId() {
        return subjectsId;
    }

    public void setSubjectsId(Integer subjectsId) {
        this.subjectsId = subjectsId;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public BigDecimal getPushMoney() {
        return pushMoney;
    }

    public void setPushMoney(BigDecimal pushMoney) {
        this.pushMoney = pushMoney;
    }
    public Double getDealNum() {
        return dealNum;
    }

    public void setDealNum(Double dealNum) {
        this.dealNum = dealNum;
    }
    public Integer getIsTrue() {
        return isTrue;
    }

    public void setIsTrue(Integer isTrue) {
        this.isTrue = isTrue;
    }
    public Integer getIsReturn() {
        return isReturn;
    }

    public void setIsReturn(Integer isReturn) {
        this.isReturn = isReturn;
    }
    public Integer getIsGrant() {
        return isGrant;
    }

    public void setIsGrant(Integer isGrant) {
        this.isGrant = isGrant;
    }
    public LocalDate getGrantDate() {
        return grantDate;
    }

    public void setGrantDate(LocalDate grantDate) {
        this.grantDate = grantDate;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
    public LocalDate getAddDate() {
        return addDate;
    }

    public void setAddDate(LocalDate addDate) {
        this.addDate = addDate;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "EnrollInfo{" +
            "id=" + id +
            ", orderId=" + orderId +
            ", oldOrderId=" + oldOrderId +
            ", schoolId=" + schoolId +
            ", schoolName=" + schoolName +
            ", teamId=" + teamId +
            ", teamName=" + teamName +
            ", teacherId=" + teacherId +
            ", teahcerName=" + teahcerName +
            ", studentId=" + studentId +
            ", studentName=" + studentName +
            ", subjectsId=" + subjectsId +
            ", type=" + type +
            ", pushMoney=" + pushMoney +
            ", dealNum=" + dealNum +
            ", isTrue=" + isTrue +
            ", isReturn=" + isReturn +
            ", isGrant=" + isGrant +
            ", grantDate=" + grantDate +
            ", deleted=" + deleted +
            ", addDate=" + addDate +
            ", createdAt=" + createdAt +
        "}";
    }
}
